package com.jhgsys.internal.base.service;

import com.jhgsys.internal.base.entity.BaseProjectArea;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 项目区域 Service接口
 *
 * @author admin
 * @date 2024-07-29 15:56:11
 */
public interface IBaseProjectAreaService extends IService<BaseProjectArea> {
    /**
     * 查询（分页）
     * @author admin
     * @date 2024-07-29 15:56:11
     * @param request QueryRequest
     * @param baseProjectArea baseProjectArea
     * @return IPage<BaseProjectArea>
     */
    IPage<BaseProjectArea> findBaseProjectAreas(QueryRequest request, BaseProjectArea baseProjectArea);

    /**
     * 查询（所有）
     * @author admin
     * @date 2024-07-29 15:56:11
     * @param baseProjectArea baseProjectArea
     * @return List<BaseProjectArea>
     */
    List<BaseProjectArea> findBaseProjectAreas(BaseProjectArea baseProjectArea);

    /**
     * 根据项目project_id查询
     * @author admin
     * @param projectIds
     * @return List<BaseProjectArea>
     */
    List<BaseProjectArea> findByProjectIds(List<String> projectIds);

    /**
    * 根据ID查询
    * @author admin
    * @date 2024-07-29 15:56:11
    * @param id
    * @return BaseProjectArea
    */
    BaseProjectArea findBaseProjectAreaById(String id);

    /**
     * 新增
     * @author admin
     * @date 2024-07-29 15:56:11
     * @param baseProjectArea baseProjectArea
     */
    void createBaseProjectArea(BaseProjectArea baseProjectArea);

    /**
     * 修改
     * @author admin
     * @date 2024-07-29 15:56:11
     * @param baseProjectArea baseProjectArea
     */
    void updateBaseProjectArea(BaseProjectArea baseProjectArea);

    /**
     * 逻辑删除
     * @author admin
     * @date 2024-07-29 15:56:11
     * @param baseProjectArea baseProjectArea
     * @param baseProjectAreaIds baseProjectAreaIds
     */
    void deleteBaseProjectArea(BaseProjectArea baseProjectArea,String baseProjectAreaIds);

    /**
    * 物理删除
    * @author admin
    * @date 2024-07-29 15:56:11
    * @param baseProjectAreaIds baseProjectAreaIds
    */
    void physicallyDeleteBaseProjectArea(String baseProjectAreaIds);

    /**
     * 根据项目id删除
     * @author admin
     * @date 2024-07-29 15:56:15
     * @param projectIds
     */
    void deleteByProjectIds(String projectIds);
}
